<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<script>
    var i =11;
    var sky = function(){
        var i = 0;
        var a = function(){
            i++;
            console.log(i);
        };
        return a;
    };
    sky()();
    sky()();
    var moon = function(){
        var h = 0;
        h++;
        console.log(h);
        console.log(h);
    };
    moon();
</script>
</body>
</html>